// Created by Joe on 2017/7/20.

app.service(
    'ReservedFundService',
    [
        'RequestProxyService', 'UserService',
        function (RequestProxyService, UserService) {
            return {
                getFundInfo: RequestProxyService.requestProxy('/fund/getFundInfo', {},
                    {idCard: UserService.user.card},
                    function (resolve, info) {
                        var result = info.result ? info.result[0] : {};
                        resolve({
                            money: result.funds_yue,
                            updateTime: result.funds_lastym
                        });
                    })
            };
        }
    ]
);